<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0">
	
	<xsl:template match="/canss">
		<html>
			<body onload="alert(session.getAttribute('_keyerror'));if(session.getAttribute('_keyerror'))alert('wrong password');session.removeAttribute('_keyerror');">
				<h2> Key 확인 </h2>
				<xsl:template match="canssPerson_Person">
					<xsl:variable name="v_key" select="canssPerson_Person/canssPerson_type/@key" />
					<xsl:variable name="v_js_blanket_s" select="canssPerson_Person/js_blanket_s" />
					<xsl:variable name="v_js_blanket_e" select="canssPerson_Person/js_blanket_e" />
					<xsl:variable name="v_js_href_cooliris" select="canssPerson_Person/js_href_cooliris" />
					<form method='post' action='svtAjaxGetKey'>
						<xsl:choose>
							<xsl:when test="$v_key!='' and $v_key!='null'">
								key: <input type='text' disabled="disabled" value='{$v_key}' size='50'/> <br/>
							</xsl:when>
							<xsl:otherwise>
								key: <input type='text' disabled="disabled" value='키 확인 버튼을 누르세요' size='50' /> <br/>
							</xsl:otherwise>
						</xsl:choose>
						
						<xsl:variable name='v_pid' select='//canssPerson_id' />
						<input type='hidden' name='_pid' value='{$v_pid}'/>
						<input type='hidden' name='_rurl' value='mainframe.jsp?_pagenum=10'/>
						password: <input type='password' name='_pw'/>
						<input type='submit' value='키 확인'/> <br/>
						
					</form>
					
					<h2> Content Metadata Out-Port </h2>
					클릭하면 새 창으로 열립니다. <br/>
					<xsl:choose>
						<xsl:when test="$v_key!='' and $v_key!='null'">
							<ol>
								<li><a href="svtContentsPort?_channelname=channel1&amp;_key={$v_key}" target="_blank"><![CDATA[http://portal.canss.net/svtContentsPort?_channelname=channel1&_key=]]><xsl:value-of select="$v_key"/></a></li>
								<li>Cooliris: <a href="svtContentsPort?_cooliris=1&amp;_channelname=channel1&amp;_key={$v_key}" target="_blank">rss</a>, <a href="{$v_js_href_cooliris}" target="_blank">sample page</a></li>
							</ol>
						</xsl:when>
						<xsl:otherwise>
							<ol>
								<li><a href="svtContentsPort?_channelname=channel1&amp;_key={$v_key}" target="_blank"><![CDATA[http://portal.canss.net/svtContentsPort?_key=[ key is here ]&_channelname=[ channel_name is here ]]]></a></li>
								<li>Cooliris: <a href="svtContentsPort?_cooliris=1&amp;_channelname=channel1&amp;_key={$v_key}" target="_blank">rss</a>, <a href="#" target="_blank">sample page</a></li>
							</ol>
						</xsl:otherwise>
					</xsl:choose>
					<h2> Webservice API </h2>
					클릭하면 새 창으로 열립니다. <br/>
					<ol>주소: <a href="CANSSAPI" target="_blank"><![CDATA[http://portal.canss.net/CANSSAPI]]></a></ol>
					<ol>WSDL: <a href="CANSSAPI?WSDL" target="_blank"><![CDATA[http://portal.canss.net/CANSSAPI?WSDL]]></a></ol>
					
					<h2>Schema 및 Namespace<font size="-3">　<a href="schema" target="_blank">(전체 schema 확인)</a></font><font size="-3">　<a href="schema/schema_example.xml" target="_blank">(schema example)</a></font><font size="-3">　<a href="schema/canssschema.xsd" target="_blank">(schema xsd)</a></font></h2>
					<ol>
					<h5>
						<![CDATA[<]]>canss:canss version="1.0"<br/>
							　xmlns:canss="http://portal.canss.net/canss/ns#" <br/>
							　xmlns:canssContent="http://portal.canss.net/canss/canssContent/ns#" <br/>
							　xmlns:canssVideo="http://portal.canss.net/canss/canssVideo/ns#" <br/>
							　xmlns:canssTV="http://portal.canss.net/canss/canssTV/ns#" <br/>
							　xmlns:canssContentDescription="http://portal.canss.net/canss/canssContentDescription/ns#" <br/>
							　xmlns:canssPerson="http://portal.canss.net/canss/canssPerson/ns#" <br/>
							　xmlns:canssTrace="http://portal.canss.net/canss/canssTrace/ns#" <br/>
							　xmlns:canssEvent="http://portal.canss.net/canss/canssEvent/ns#" <br/>
							　xmlns:canssOrchestrator="http://portal.canss.net/canss/canssOrchestrator/ns#" <br/>
							　xmlns:canssContract="http://portal.canss.net/canss/canssContract/ns#" <br/>
							　xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <br/>
							　xsi:schemaLocation="http://portal.canss.net/canss/ns# <a href="http://portal.canss.net/schema/canssschema.xsd" target="_blank">http://portal.canss.net/schema/canssschema.xsd</a>" <![CDATA[>]]><br/>
					
						<![CDATA[<]]>canssContent:media<br/>
							　xmlns:dc="http://purl.org/dc/elements/1.1/"<br/>
							　xmlns:dcterms="http://www.purl.org/dc/terms/"<br/>
							　xmlns:xmp="http://ns.adobe.com/xap/1.0/"<br/>
							　xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"<br/>
							　xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/" <![CDATA[>]]><br/>
						<![CDATA[<]]>xmp:Thumbnails<br/>
							　xmlns:xmpGImg="http://ns.adobe.com/xap/1.0/g/img/" <![CDATA[>]]><br/>
						<![CDATA[<]]>xmpDM:videoFrameSize<br/>
							　xmlns:stDim='http://ns.adobe.com/xap/1.0/sType/Dimensions#' <![CDATA[>]]><br/>
					</h5>
					</ol>
				</xsl:template>
			</body>
		</html>
	</xsl:template>

</xsl:stylesheet>